﻿<Window x:Class="PerfmonImportExport.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Perfmon Import Export to VS Load Test DB" Height="600" Width="800" Loaded="Window_Loaded" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition x:Name="gridRibbonBarRow" Height="Auto"/>
            <RowDefinition x:Name="gridMainAppRow"/>
            <RowDefinition x:Name="gridStatusBarRow" Height="25" />
        </Grid.RowDefinitions>
        <Ribbon Grid.Column="0" Grid.ColumnSpan="3" x:Name="RibbonWin"  SelectedIndex="0">
            <Ribbon.HelpPaneContent>
                <RibbonMenuButton x:Name="mbHelp" SmallImageSource="Images/Help_16.png">
                    <RibbonMenuItem x:Name="btnMenuHelpTopic0" Header="Import Export Tool Help" Click="btnMenuHelpTopic0_Click" />
                </RibbonMenuButton>
            </Ribbon.HelpPaneContent>
            <RibbonTab Header="Home" x:Name="RibbonTabOptions" KeyTip="O">
                <RibbonGroup x:Name="Actions" Header="Actions" >
                    <RibbonButton x:Name="btnGetRuns" Label="Get Runs" LargeImageSource="Images/LoadTest_32.png" Click="btnGetRuns_Click" />
                    <RibbonButton x:Name="btnImportPerfmon" Label="Import Counters" LargeImageSource="Images/ImportFromPerfmon_32.png" Click="btnImportPerfmon_Click" />
                    <RibbonButton x:Name="btnExportPerfmon" Label="Export Counters" LargeImageSource="Images/ExportToPerfmon_32.png" Click="btnExportPerfmon_Click" />
                    <RibbonButton x:Name="btnExit" Label="Exit" LargeImageSource="Images/Close_32.png" Click="btnExit_Click" />
                </RibbonGroup>
                <RibbonGroup x:Name="Input" Header="Connection">
                    <!--<RibbonTwoLineText x:Name="tltInput" Text="SQL Connection String:" />-->
                    <RibbonTextBox x:Name="tbSqlConn" Label="SQL Connection String" Text="" Height="22" TextBoxWidth="350" />
                    <RibbonTextBox x:Name="tbFileFolder" Label="File Folder" Text="c:\temp\" Height="22" TextBoxWidth="350" />
                </RibbonGroup>
            </RibbonTab>
        </Ribbon>
        <TabControl x:Name="tcData" Grid.Row="1" Margin="5">
            <TabItem x:Name="tabMainResults" Header="List Of Runs">
                <DataGrid x:Name="dgResults" Margin="3" AutoGenerateColumns="True" Grid.Row="1" SelectionChanged="dgResults_SelectionChanged"/>
            </TabItem>
            <TabItem x:Name="tabMachines" Header="Machines">
                <DataGrid x:Name="dgMachines" Margin="3" AutoGenerateColumns="True" Grid.Row="1" SelectionChanged="dgMachines_SelectionChanged" />
            </TabItem>
        </TabControl>
        <StatusBar Height="25" VerticalAlignment="Bottom" Grid.Row="2" >
            <StatusBarItem x:Name="sbiMessageItem">
                <Label x:Name="tsslMessage" Padding="10,0,10,0" Content="This space for rent." MinWidth="500"/>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>
